#include <iostream>
using namespace std;

int main (void)
{
	bool b = false;
	cout << sizeof(b) << endl;// 1

	b = 123;
	//流控制符 boolalpha, 以字符串的形式打印bool值
	cout << boolalpha << b << endl; //true
	b = 0.0;
	cout << b << endl;//false 
	b = "hello world";
	cout << b << endl;//true
	char *p = NULL; 
	b = p;
	cout << b << endl; //false

	return 0;
}

